import request from "@/service/request";
import { API_PREFIX } from '@/config'
import { signatureGenerate } from "@/utils/signatureUtil"
import { compress } from 'image-conversion';
import axios from "axios";


export const _getMyWallet = () => {
    return request({
        url: `${API_PREFIX}/wallet/getAll.action`,
        loading: false,
        method: 'GET'
    })
}


export const _selectMyWallet = () => {
    return request({
        url: `${API_PREFIX}/mywallet/tops`,
        loading: false,
        method: 'GET'
    })
}


// export const _getItemBySymbol = (symbol,symbolData) => {
//     return request({
//         url: `${API_PREFIX}/mywallet/getBySymbol`,
//         method: "GET",
//         params: {
//           symbol,
//           symbolData
//         }
//         // isLoading: true
//       })
// };


export const _getItemBySymbol = (symbol) => {
    return request({
        url: `${API_PREFIX}/mywallet/getBySymbol`,
        method: "GET",
        params: {
          symbol
        }
        // isLoading: true
      })
};

export const _getInviteUser = () => {
    return request({
        url: `${API_PREFIX}/mywallet/getInviteUser`,
        loading: false,
        method: 'GET'
    })
}

export const _getInviteMoneyUser = () => {
    return request({
        url: `${API_PREFIX}/mywallet/getInviteMoneyUser`,
        loading: false,
        method: 'GET'
    })
}